package com.hdaccp.shuiguoD.service.impl;

import com.hdaccp.shuiguoD.dao.XiaoshouDao;
import com.hdaccp.shuiguoD.entity.Xiaoshou;
import com.hdaccp.shuiguoD.service.XiaoshouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XiaoshouServiceImpl implements XiaoshouService {
    @Autowired
    private XiaoshouDao xiaoshouDao;
    @Override
    public long findTotalCount(String xiaoname) {
        return xiaoshouDao.getTotalCount(xiaoname);
    }

    @Override
    public List<Xiaoshou> findAll(String xiaoname, int offset, int limit) {
        return xiaoshouDao.query(xiaoname, offset, limit);
    }

    @Override
    public int addls(Xiaoshou xiaoshou) {
        return xiaoshouDao.addls(xiaoshou);
    }
}
